package com.night.icm.persistence.business.reporsitory;

import com.night.icm.persistence.business.entity.NotificationInformation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * NotificationInformationRepository
 *
 * @author Liao ZhiYong
 * @date 2020/4/1
 */
@Repository
public interface NotificationInformationRepository extends JpaRepository<NotificationInformation, Long>, JpaSpecificationExecutor<NotificationInformation> {

    /**
     * 通过接收者id查找
     *
     * @param receiverId id
     * @return 通知
     */
    List<NotificationInformation> findByReceiverId(String receiverId);
}
